<template>
  <div>
    <div>
      <h4>个人因素（不利因素或有利因素）</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="11">
          <span>意识状态</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.grysradio1" style="width: 99%;">
              <el-radio :label="1">昏迷</el-radio>
              <el-radio :label="2">嗜睡</el-radio>
              <el-radio :label="3">正常</el-radio>
              <el-input v-model="pgForm.grysinput1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="11">
          <span>配合程度</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.grysradio2" style="width: 99%;">
              <el-radio :label="1">消极</el-radio>
              <el-radio :label="2">一般</el-radio>
              <el-radio :label="3">积极</el-radio>
              <el-input v-model="pgForm.grysinput2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="11">
          <span>理解能力</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.grysradio3" style="width: 99%;">
              <el-radio :label="1">消极</el-radio>
              <el-radio :label="2">一般</el-radio>
              <el-radio :label="3">积极</el-radio>
              <el-input v-model="pgForm.grysinput3" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="11">
          <span>心理状态</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.grysradio4" style="width: 99%;">
              <el-radio :label="1">焦虑</el-radio>
              <el-radio :label="2">抑郁</el-radio>
              <el-radio :label="3">正常</el-radio>
              <el-input v-model="pgForm.grysinput4" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "individual_factor",
  title: "个人因素（不利因素或有利因素）",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      pgForm: {
        grysradio1: '',
        grysradio2: '',
        grysradio3: '',
        grysradio4: '',
        grysinput1: '',
        grysinput2: '',
        grysinput3: '',
        grysinput4: '',
      }
    };
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
